package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zh.domain.Model.BaseEntity;
import com.zh.handler.JsonMapTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @TableName task_comments
 */
@TableName(value = "task_comments",autoResultMap = true)
@Data
@ApiModel(value = "TaskComments",description = "任务评论")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TaskComments extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("评论id")
    private Integer id;
    @ApiModelProperty("评论任务")
    private Integer taskId;
    @ApiModelProperty("评论人id")
    private Integer sendId;
    @ApiModelProperty("评论内容")
    private String content;
    @ApiModelProperty("附件 艾特等信息 A-{附件信息} M-{艾特信息}")
    @TableField(typeHandler = JacksonTypeHandler.class,value = "params")
    private Map<String, Object> params;
    @ApiModelProperty("评论状态 0 删除 1 正常")
    private Integer status;

}